<!-- Star of Main -->
<div class="main mt10" >
    <!-- Star of area2s -->
    <div class="area2s">
    	<!-- Star of Col1 -->
    	<div class="col1">
			<div class="breadCrumb">
				<div class="fl"><span class="cRed fb">当前位置：</span> <a href="<?php echo CHtml::normalizeUrl(array('/')) ?>">首页</a>&nbsp;&rsaquo;&nbsp;<strong>个人中心</strong></div>
            </div>    
			<div class="member mt10">
				<dl class="member-menu">
					<dt>个人中心</dt>
					<dd class="active"><a href="<?php echo CHtml::normalizeUrl(array('/users/viewprofile')) ?>" title="个人资料">个人资料</a></dd>
					<dd><a href="<?php echo CHtml::normalizeUrl(array('/users/updateavatar')) ?>" title="修改头像">修改头像</a></dd>
					<dd><a href="<?php echo CHtml::normalizeUrl(array('/users/changepassword')) ?>" title="修改密码">修改密码</a></dd>
					<dd><a href="<?php echo CHtml::normalizeUrl(array('/users/myqas')) ?>" title="我的问吧提问">我的问吧提问</a></dd>
					<dd><a href="<?php echo CHtml::normalizeUrl(array('/users/subscribe')) ?>" title="订阅《心灵智慧》">订阅《心灵智慧》</a></dd>
				</dl>
				<div class="memberMain">
					<div class="memberMain-inner">
						<div class="merber-title"><h2 class="cRed"><span class="mem-icon mem-editdata"></span>修改个人资料</h2></div>
						<?php echo CHtml::form(array(''), 'post', array('id' => 'edit_profile_form')) ?>
						<table cellpadding="0" cellspacing="0" border="0">
							<?php if($user->bbs->hasErrors() || $user->bbsMemberFields->hasErrors()) : ?>
							<tr>
								<td colspan="2"><div class="notice_error"><?php foreach($user->bbs->getErrors() as $error) : ?><?php echo $error[0] ?><?php endforeach ?><?php foreach($user->bbsMemberFields->getErrors() as $error) : ?><?php echo $error[0] ?><?php endforeach ?></div></td>
							</tr>
							<?php elseif(isPost()) : ?>
							<tr>
								<td colspan="2"><div class="notice_oktext">您的个人信息更新成功。</div></td>
							</tr>
							<?php endif ?>
							<tr>
								<td class="row-left">用&nbsp;&nbsp;户&nbsp;&nbsp;名：</td>
								<td class="row-right"><?php echo $user->username ?></td>
							</tr>
							<tr>
								<td class="row-left">电子邮件：</td>
								<td class="row-right"><?php echo $user->email ?></td>
							</tr>
							<tr>
								<td class="row-left">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
								<td class="row-right"><?php echo CHtml::activeDropDownList($user->bbs, 'gender', array(BbsMembers::GENDER_UNSET => '请选择您的性别', BbsMembers::GENDER_FEMALE => '女', BbsMembers::GENDER_MALE => '男')) ?></td>
							</tr>
							<tr>
								<td class="row-left">生&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日：</td>
								<td class="row-right"><?php echo CHtml::activeTextField($user->bbs, 'bday', array('class' => 'ipt3')) ?>（格式：YYYY-MM-DD）
								</td>
							</tr>
							<tr>
								<td class="row-left">来&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;自：</td>
								<td class="row-right"><?php echo CHtml::activeTextField($user->bbsMemberFields, 'location', array('class' => 'ipt3')) ?></td>
							</tr>
							<tr>
								<td class="row-left">Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q：</td>
								<td class="row-right"><?php echo CHtml::activeTextField($user->bbsMemberFields, 'qq', array('class' => 'ipt3')) ?></td>
							</tr>
							<tr>
								<td class="row-left">个人网站：</td>
								<td class="row-right"><?php echo CHtml::activeTextField($user->bbsMemberFields, 'site', array('class' => 'ipt3')) ?></td>
							</tr>
							<tr>
								<td class="row-left">&nbsp;</td>
								<td class="row-right"><a class="btn-gray edit-data" href="" onclick="$('#edit_profile_form').submit();return false;"><span>保存</span></a> &nbsp;或者<a href="<?php echo CHtml::normalizeUrl(array('/users/viewprofile')) ?>" class="cRed">返回</a></td>
							</tr>
						</table>
						<?php echo CHtml::endForm() ?>
					</div>
				</div>
			</div>
        </div>
        <!-- End of Col1 -->
        <!-- Star of Col2 -->
        <div class="col2">
			<?php $this->widget('SearchBox') ?>
			<?php $this->widget('MustKnow') ?>
			<?php $this->widget('HotPosts') ?>
        </div>
        <!-- End of Col2 -->
    </div><!-- End of area3s -->
</div>
<!-- End of Main -->